﻿@model Model.TUser
@{
    Layout = null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>登录 - Babyface</title>
    <script src="~/js/jquery-1.6.2.min.js"></script>
    <link href="/css/Login/Login.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            background-color: #f7f7f7;
        }

        .clear-both {
            clear: both;
        }
    </style>
    <script type="text/javascript">
        function sumbitCheck() {
            var LoginName = $("#LoginName").val();
            var Password = $("#Password").val();
            if (LoginName == "" || Password == "") {
                alert("请填写账号和密码");
                return false;
            }
            $("#form1").submit();
        }
    </script>
</head>
<body>
    @using (@Html.BeginForm("Login", "System", FormMethod.Post, new { id = "form1" }))
    {
        <div id="DL">
            <span class="DL-tupianbj">账号登录</span>
            <div class="DL-BJ">
                <div class="DL-tupianbj2">
                    帐号
                    @Html.TextBoxFor(m => m.LoginName, new { @class = "login_text" })
                </div>
                <div class="DL-tupianbj2">
                    密码
                    @Html.TextBoxFor(m => m.LoginPassword, new { @class = "login_text" })
                </div>

                <input type="button" onclick="sumbitCheck()" class="DL-submit" />
                <span>@Html.ValidationMessage("alert")</span>
            </div>
        </div>
    }
</body>
</html>
